package cn.johnyu.util;

import reactor.core.publisher.Mono;

import java.util.HashMap;
import java.util.Map;

public class MapDemo {
    public static void main(String[] args) {
//        Map<String, String> map = new HashMap<>();
//        System.out.println(map.put("name", "johnyu"));
//        System.out.println(map.put("name", "johnyu123"));
//        System.out.println(map.get("name"));
//        System.out.println(map.remove("name2"));
//        System.out.println(map.containsKey("name"));
        Mono<String> mono=Mono.just("johnyu");
        Mono<String> map = mono.map(x -> x.toUpperCase());
        Mono<String> stringMono = mono.flatMap(x -> Mono.just(x.toUpperCase()));

    }
}
